<?php
/**
 * Created by PhpStorm.
 * User: smilezheng
 * Date: 2019/8/14
 * Time: 19:07
 */

namespace Test\Controller;

use App\Controller\DemoController;
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;

class TestController extends KernelTestCase
{
    public function testSomeMethod()
    {
        self::bootKernel();
        $demoController = self::$container->get(DemoController::class);
        $this->assertTrue($demoController instanceof DemoController);
    }
}